package models;

import models.crudsiena.SienaSupport;
import siena.Generator;
import siena.Id;
import siena.NotNull;
import utils.TextConverter;

/**
 * Created by Gipxy group
 * Date: 5/9/12
 */
public class App extends SienaSupport {
    @Id(Generator.AUTO_INCREMENT)
    public Long id;

    @NotNull
    public String language;

    @NotNull
    public String code;
    public String title;
    
    public String brief;


    public byte[] photo;
    
    public String groupCode;//belong to

    public Integer order;

    public String getShortTitle(){
        return TextConverter.convertToShortUrl(title);
    }
}
